﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model.Upadan
{
    public class Product
    {
        private String id;
        private String code;
        private String productName;
        private String description;
        private char isvat;
        private float price;
        private float delcharge;
        private int quantity;
        private String colour;
        private String size;
        private char islive;
        
        public String Id {
            get {
                return id;
            }
            set {
                id = value;
                id = (id.Length > 20) ? id.Substring(0, 20) : id;
            }
        }
        public String Code
        {
            get
            {
                return code;
            }
            set
            {
                code = value;
                code = (code.Length > 50) ? code.Substring(0, 50) : code;
            }
        }

        public String ProductName
        {

            get
            {
                return productName;
            }
            set
            {
                productName = value;
                productName = (productName.Length > 50) ? productName.Substring(0,50) : productName;
            }
        }

        public String Description
        {

            get
            {
                return description;
            }
            set
            {
                description = value;
                description = (description.Length > 200) ? description.Substring(0,200) : description;
            }
        }

        public char IsVat
        {
            get
            {
                return isvat;
            }
            set
            {
                isvat = value;
            }
        }

        public float Price
        {
            get
            {
                return price;
            }
            set
            {
                price = value;
            }
        }

        public float Delcharge
        {
            get
            {
                return delcharge;
            }
            set
            {
                delcharge = value;
            }
        }

        public int Quantity {

            get {
                return quantity;
            }
            set {
                quantity = value;
            }
        }

        public String Colour
        {

            get
            {
                return colour;
            }
            set
            {
                colour = value;
                colour = (colour.Length > 20) ? colour.Substring(0,20) : colour;
            }
        }

        public String Size
        {
            get
            {
                return size;
            }
            set
            {
                size = value;
                size = (size.Length > 20) ? size.Substring(0, 20) : size;
            }

        }
        public char isLive {
            get {
                return islive;
            }
            set {
                islive = value;
            }
        }
    }
}
